@keyframes mymove {
  0% {
    transform: scale3d(0.5, 0.5, 0.5);
    opacity: 0;
  }
  50% {
    animation-timing-function: cubic-bezier(0.47, 0, 0.745, 0.715);
  }
  100% {
    transform: scale3d(1, 1, 1);
    animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 1;
  }
}
* {
  margin: 0;
  padding: 0;
}
.all {
  width: 100%;
  height: 100%;
  position: absolute;
  overflow: hidden;
  background-image: url(../img/chaoshi.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  .nav {
    width: 100%;
    height: 50px;
    background-color: rgba(202, 202, 202, 0.9);
    h2 {
      width: 200px;
      height: 50px;
      display: inline-block;
      line-height: 50px;
      color: aliceblue;
      text-align: center;
      background-color: rgba(40, 54, 66, 0.9);
      float: left;
    }
    .user-box {
      height: 100%;
      float: right;
      margin-right: 50px;
      i {
        padding-right: 10px;
      }
      p {
        display: inline-block;
        height: 100%;
        padding-left: 10px;
        padding-right: 10px;
        margin-top: 0;
        line-height: 50px;
      }
      &:hover {
        background-color: rgb(255, 255, 255);
        cursor: pointer;
      }
    }
  }
  .main {
    width: 100%;
    height: 100%;
  }
  .main-box {
    width: 100%;
    height: 100%;
    display: flex;
  }
  .main-left {
    width: 200px;
    height: 100%;
    display: inline-block;
    background-color: rgba(40, 54, 66, 0.9);
    ul {
      li {
        list-style: none;
        margin: 0 auto;
        width: 100%;
        height: 50px;
        margin-top: 10px;
        text-align: left;
        line-height: 50px;
        color: white;
        i {
          margin-left: 30px;
          margin-right: 20px;
        }
        &:first-child {
          margin-top: 20px;
          background-color: rgb(28, 193, 159);
          color: aliceblue;
          cursor: pointer;
        }
        &:hover {
          background-color: rgb(28, 193, 159);
          color: aliceblue;
          cursor: pointer;
        }
      }
    }
  }
  .main-right {
    flex-grow: 1;
    height: 93%;
    overflow-y: auto;
    .main-right-box {
      width: 90%;
      background-color: rgb(255, 255, 255);
      margin: 30px auto;
      border: 1px solid rgb(180, 180, 180);
      .search {
        width: 100%;
        height: 80px;
        border-bottom: 1px solid rgb(180, 180, 180);
        h4 {
          padding-left: 20px;
          margin-top: 20px;
        }
        p {
          display: inline-block;
          font-size: 14px;
          padding-left: 20px;
          margin-top: 10px;
        }
        .input-search {
          width: 200px;
          height: 27px;
          margin-left: 20px;
          outline: none;
          padding-left: 10px;
          &:focus {
            border: 1px solid rgb(82, 215, 248);
          }
        }
        button {
          width: 70px;
          height: 35px;
          margin-left: 15px;
          border-radius: 5px;
          color: aliceblue;
          border: none;
          background-color: rgb(54, 124, 184);
          &:hover {
            background-color: rgb(89, 173, 247);
            cursor: pointer;
          }
        }
      }
      h4 {
        padding-left: 20px;
        margin-top: 20px;
      }
      .table {
        width: 100%;
        table {
          width: 95%;
          border-collapse: collapse;
          border: 1px solid rgb(180, 180, 180);
          margin: 20px auto;
          thead {
            width: 100%;
            tr {
              width: 100%;
              height: 50px;
              th {
                color: rgb(131, 131, 131);
                border: 1px solid rgb(180, 180, 180);
              }
            }
          }
          tbody {
            tr {
              width: 100%;
              height: 45px;
              td {
                width: 100px;
                color: rgb(131, 131, 131);
                font-size: 16px;
                text-align: center;
                border: 1px solid rgb(180, 180, 180);
              }
              button {
                width: 50px;
                height: 30px;
                border-radius: 5px;
                border: none;
                margin-left: 10px;
                &:nth-child(1) {
                  background-color: rgb(243, 190, 43);
                  &:hover {
                    background-color: rgb(255, 210, 87);
                    cursor: pointer;
                    color: aliceblue;
                  }
                }
                &:nth-child(2) {
                  background-color: rgb(255, 95, 55);
                  &:hover {
                    background-color: rgb(255, 82, 82);
                    color: aliceblue;
                    cursor: pointer;
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}

.hidden-add {
  width: 100%;
  height: 100%;
  display: none;
  overflow: hidden;
  position: absolute;
  background-color: rgba(0, 0, 0, 0.288);
  .hidden-add-box {
    border-radius: 10px;
    width: 400px;
    background-color: white;
    margin: 100px auto;
    position: relative;
    animation: mymove 0.5s;
    h3 {
      width: 100%;
      height: 50px;
      text-align: center;
      line-height: 50px;
      border-bottom: 1px solid rgb(180, 180, 180);
    }
    .back {
      position: absolute;
      top: 10px;
      right: 10px;
      i {
        font-size: 25px;
        color: rgb(180, 180, 180);
        &:hover {
          color: black;
          cursor: pointer;
        }
      }
    }
    .hidden-add-input {
      width: 100%;
      height: auto;
      p {
        margin-left: 30px;
        line-height: 50px;
        padding-left: 10px;
        padding-right: 10px;
        height: 50px;
        font-size: 18px;
        display: inline-block;
      }
      input {
        width: 60%;
        height: 30px;
        outline: none;
        padding-left: 10px;
        &:focus {
          border: 1px solid rgb(82, 215, 248);
        }
      }
      .add {
        margin-top: 20px;
        margin-bottom: 20px;
        width: 100px;
        height: 50px;
        color: aliceblue;
        border-radius: 10px;
        border: none;
        background-color: rgb(77, 198, 255);
        margin-left: 150px;
        &:hover {
          background-color: rgb(0, 174, 255);
          cursor: pointer;
        }
      }
    }
  }
}

